const validate = require('../middleware/validator')
const {
    body,
    param
} = require('express-validator')
const response = require('../utils/response')
const mongoose = require('mongoose')
const Notice = require('../models/notice')

// 自定义提示校验
exports.remindTask = validate([
    body('userId')
    .notEmpty().withMessage('用户id不能为空~~'),
])
// 自定义提示校验
exports.chat = validate([
    body('notifier')
    .notEmpty().withMessage('通知人不能空~~'),
    body('tips')
    .notEmpty().withMessage('提示消息不能空~~'),
])